<div class="modal fade bs-modal-lg" id="modelContent">
	<div class="modal-dialog modal-lg">
        <div class="modal-content"></div>
    </div>
</div> 
<div class="portlet box green">
    <div class="portlet-title">
		<div class="caption"><i class="fa fa-cogs"></i>数据列表</div>
		<div class="tools"><a href="javascript:;" class="collapse" data-original-title="" title=""> </a></div>
		<div class="actions">
			<a href="javascript:;" class="btn white btn-sm ajax-search"><i class="fa fa-search"></i> 查询 </a>
			 <a href="javascript:;" class="btn white btn-sm search-reset"><i class="fa fa-eraser"></i> 清除 </a>
		</div>
	</div>
	<div class="portlet-body">
    	<div class="tabbable-line ">
			<ul class="nav nav-tabs ">
				<li><a href="/messageSite/siteTemplates" class="ajaxify">站内消息模板</a></li>
				<li><a href="/messageSite/custom" class="ajaxify">自定义消息</a></li>
				<li class="active"  ><a href="/messageSite/sendBox"  class="ajaxify">发件箱</a></li>
			</ul>
			<div class="portlet-body form">
				<form action="messageSite/sendBox" class="form-horizontal"
					method="get" id="searchForm">
					<div class="form-body">
						<div class="row">
							<div class="form-group">
								<div class="col-md-3">
									<label class="col-md-4 control-label">消息标题：</label>
									<div class="col-md-8">
										<input type="text" class="form-control" value="$!title"
											name="title">
									</div>
								</div>
								<div class="col-md-3">
									<label class="col-md-4 control-label">消息类型：</label>
									<div class="col-md-8">
										<select class="form-control" name="msgType">
											<option value="">请选择</option>
											<option value="true">自定义消息</option>
											<option value="false">模板消息</option>
										</select>
									</div>
								</div>
								<div class="col-md-3">
									<label class="control-label col-md-4">发送时间</label> <label
										class="col-md-8"> <input class="form-control"
										type="text" name="startTime" id="startTime"
										value="$!startTime" readonly> <i
										class="fa fa-calendar"
										style="position: absolute; right: 10px; top: 10px"></i>
									</label>
								</div>
								<div class="col-md-3">
									<label class="control-label col-md-2">至：</label> <label
										class="col-md-8"> <input class="form-control"
										type="text" name="endTime" id="endTime" value="$!endTime"
										readonly> <i class="fa fa-calendar"
										style="position: absolute; right: 10px; top: 10px"></i>
									</label>
								</div>
							</div>
						</div>
					</div>
				</form>
			</div>
			<div class="tab-content">
				<div class="portlet-body form">
                    <div class="form-body">
 						<div class="table-scrollable">
						   <table class="table table-striped table-bordered table-hover" id="tableCategory">
							  	<thead>
									<tr>
										<th>收信人</th>
										<th>收信用户类型</th>
										<th>站内消息标题</th>
										<th>消息类型</th>
										<th>发送时间</th>
										<th>操作</th>
									</tr>
								</thead>
								<tbody>
								#foreach($messageSite in $!messageSitePage.result)
								#set($company = $!companyMap.get($!messageSite))
									<tr>
										<td>#if($!messageSite.userType)用户账号： $!messageSite.sendTo #else 企业名称：  $company.name  #end</td>
										<td>#if($!messageSite.userType) 个人用户 #else  企业用户 #end</td>
										<td>$!messageSite.title</td>
										<td>#if($!messageSite.sendType)$!messageEmail.sendType.name #else 自定义消息  #end</td>
										<td>$!messageSite.sendDate</td>
										<td><a href="#modelContent" class="btn green btn-outline btn-sm ajax-model-get"  data-toggle="modal"  thref="/messageSite/siteDetail?id=$!messageSite.id"><i class="fa fa-edit" ></i>查看详情</a></td>
									</tr>
								#end
								</tbody>
							</table>
						</div>
						#set($page=$!messageSitePage)
						#set($pageUrl="/messageSite/sendBox?&pageNo=")
						#parse("_page.htm")
                    </div>
				</div>
			</div>
		</div>
    </div>
</div>
<script src="/assets/scripts/views-date.js" type="text/javascript"></script>
<script type="text/javascript">
$("input[name= title]").focus();
</script>